package com.openbravo.pos.ticket;

import com.openbravo.basic.BasicException;
import com.openbravo.data.loader.DataRead;
import com.openbravo.data.loader.IKeyed;
import com.openbravo.data.loader.ImageUtils;
import com.openbravo.data.loader.SerializerRead;
import java.awt.image.BufferedImage;

public class CategoryInfo
  implements IKeyed
{
  private static final long serialVersionUID = 8612449444103L;
  private String m_sID;
  private String m_sName;
  private BufferedImage m_Image;

  public CategoryInfo(String paramString1, String paramString2, BufferedImage paramBufferedImage)
  {
    this.m_sID = paramString1;
    this.m_sName = paramString2;
    this.m_Image = paramBufferedImage;
  }

  public Object getKey()
  {
    return this.m_sID;
  }

  public void setID(String paramString)
  {
    this.m_sID = paramString;
  }

  public String getID()
  {
    return this.m_sID;
  }

  public String getName()
  {
    return this.m_sName;
  }

  public void setName(String paramString)
  {
    this.m_sName = paramString;
  }

  public BufferedImage getImage()
  {
    return this.m_Image;
  }

  public void setImage(BufferedImage paramBufferedImage)
  {
    this.m_Image = paramBufferedImage;
  }

  public String toString()
  {
    return this.m_sName;
  }

  public static SerializerRead getSerializerRead()
  {
    return new SerializerRead()
    {
      public Object readValues(DataRead paramDataRead)
        throws BasicException
      {
        return new CategoryInfo(paramDataRead.getString(1), paramDataRead.getString(2), ImageUtils.readImage(paramDataRead.getBytes(3)));
      }
    };
  }
}

/* Location:           D:\PowerFulPOS-2.30.2\openbravopos.jar
 * Qualified Name:     com.openbravo.pos.ticket.CategoryInfo
 * JD-Core Version:    0.6.0
 */